import 'package:flutter/material.dart';

///颜色
class MColor {
  MColor._();

  ///主题色
  static Color skin = Color(0xFF25C56F);
  static Color skin_80 = Color(0xFF25C56F).withAlpha(80);

  ///黑色
  static Color xFF333333 = Color(0xFF333333);
  static Color xFF333333_60 = Color(0xFF333333).withAlpha(60);
  static Color xFF333333_50 = Color(0xFF333333).withAlpha(50);

  ///灰色
  static Color xFFEEEEEE = Color(0xFFEEEEEE);
  static Color xFFEEEEEE_60 = Color(0xFFEEEEEE).withAlpha(60);
  static Color xFF999999 = Color(0xFF999999);
  static Color xFF666666 = Color(0xFF666666);
  static Color xFFCCCCCC = Color(0xFFCCCCCC);
  static Color xFF10509C = Color(0xFF10509C);
  static Color xFFD046BA = Color(0xFFD046BA);
  static Color xFF37579B = Color(0xFF37579B);
  static Color xFF12AAE5 = Color(0xFF12AAE5);
  static Color xFF000000 = Color(0xFF000000);
  static Color xFF157EFB = Color(0xFF157EFB);
  static Color xFF157EFB_20 = Color(0xFF157EFB).withAlpha(20);
  static Color xFF2FB5FD = Color(0xFF2FB5FD);
  static Color xFFFFA433 = Color(0xFFFFA433);
  static Color xFFFF5353 = Color(0xFFFF5353);
  static Color xFFEFF4FB = Color(0xFFEFF4FB);
  static Color x66000000 = Color(0x66000000);
  static Color xFF4CE4A8 = Color(0xFF4CE4A8);
  static Color xFF25C56F = Color(0xFF25C56F);
  static Color xFFF2F2F2 = Color(0xFFF2F2F2);
  static Color xFF48A23F = Color(0xFF48A23F);
  static Color xFF48A23F_90 = Color(0x9048A23F);
  static Color xFF5FBCAE = Color(0xFF5FBCAE);
  static Color xFF5CB96D = Color(0xFF5CB96D);
}

class MFont {
  static const bold24 = TextStyle(fontSize: 24, fontWeight: FontWeight.w700);
  static const bold22 = TextStyle(fontSize: 22, fontWeight: FontWeight.w700);
  static const bold20 = TextStyle(fontSize: 20, fontWeight: FontWeight.w700);

  static const semi_Bold24 = TextStyle(fontSize: 24, fontWeight: FontWeight.w600);
  static const semi_Bold20 = TextStyle(fontSize: 20, fontWeight: FontWeight.w600);
  static const semi_Bold17 = TextStyle(fontSize: 17, fontWeight: FontWeight.w600);
  static const semi_Bold16 = TextStyle(fontSize: 16, fontWeight: FontWeight.w600);
  static const semi_Bold15 = TextStyle(fontSize: 15, fontWeight: FontWeight.w600);
  static const semi_Bold14 = TextStyle(fontSize: 14, fontWeight: FontWeight.w600);
  static const semi_Bold13 = TextStyle(fontSize: 13, fontWeight: FontWeight.w600);
  static const semi_Bold12 = TextStyle(fontSize: 12, fontWeight: FontWeight.w600);
  static const semi_Bold11 = TextStyle(fontSize: 11, fontWeight: FontWeight.w600);

  ///regular
  static const regular20 = TextStyle(fontSize: 20, fontWeight: FontWeight.w400);
  static const regular19 = TextStyle(fontSize: 19, fontWeight: FontWeight.w400);
  static const regular18 = TextStyle(fontSize: 18, fontWeight: FontWeight.w400);
  static const regular17 = TextStyle(fontSize: 17, fontWeight: FontWeight.w400);
  static const regular16 = TextStyle(fontSize: 16, fontWeight: FontWeight.w400);
  static const regular15 = TextStyle(fontSize: 15, fontWeight: FontWeight.w400);
  static const regular14 = TextStyle(fontSize: 14, fontWeight: FontWeight.w400);
  static const regular13 = TextStyle(fontSize: 13, fontWeight: FontWeight.w400);
  static const regular12 = TextStyle(fontSize: 12, fontWeight: FontWeight.w400);
  static const regular11 = TextStyle(fontSize: 11, fontWeight: FontWeight.w400);
  static const regular10 = TextStyle(fontSize: 10, fontWeight: FontWeight.w400);
}

class MGradient {
  MGradient._();

  ///垂直渐变色
  static LinearGradient verticalGradient(List<Color> colors) {
    return LinearGradient(
      begin: Alignment.topCenter,
      end: Alignment.bottomCenter,
      colors: colors,
    );
  }

  ///左右渐变色
  static LinearGradient horizontalGradient(List<Color> colors) {
    return LinearGradient(
      begin: Alignment.centerLeft,
      end: Alignment.centerRight,
      colors: colors,
    );
  }
}
